<script type="text/javascript">
	function sum() {
		var a = 10;
		var b = 21;
		document.getElementById("idsum").innerHTML = a + b;
	}
</script>